package com.ysc.springcloud.productservice.controller;

import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableEurekaClient
public class ProductController {

    @GetMapping("/product/{id}")
    public String findById(@PathVariable("id") String id){
        return "SUCCESS...";
    }
}
